package Information_sysyem_jdbc.entity;

/**
 * @author LiangHaiBo
 * @version 1.0
 * @date 2021.8.21 上午 9:34
 */
public class Information {
   /** id INT PRIMARY KEY,
    NAME VARCHAR(20),
    gender VARCHAR(10),
    age INT,
    address VARCHAR(50),
    phone VARCHAR(20));
*/
   private int id;
   private String name;
   private String gender;
   private int age;
   private String address;
   private String phone;

    public Information() {}

    public Information(int id, String name, String gender,  int age, String address, String phone) {
        this.id = id;
        this.name = name;
        this.gender = gender;
        this.age = age;
        this.address = address;
        this.phone = phone;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getGender() {
        return gender;
    }

    public void setGender(String gender) {
        this.gender = gender;
    }

    public int  getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    @Override
    public String toString() {
        return "Information{" +
                "id=" + id +
                ", name='" + name + '\'' +
                ", gender='" + gender + '\'' +
                ", age='" + age + '\'' +
                ", address='" + address + '\'' +
                ", phone='" + phone + '\'' +
                '}';
    }
}
